diff options
| author | Adam Soltys <[email protected]> | 2023-04-04 15:36:56 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-04-04 15:36:56 -0700 |
| commit | 3ee57a143c1c95297ce90dfdcfcf728e16b15a96 (patch) | |
| tree | cd6d88a2e69880605bc018d5ab32a4b3011cbdfb /src/routes/(app)/[username]/invoice | |
| parent | dd46c86a6d188752e608558353309a6b326e9f32 (diff) | |
| download | coinos-ui-3ee57a143c1c95297ce90dfdcfcf728e16b15a96.tar.gz coinos-ui-3ee57a143c1c95297ce90dfdcfcf728e16b15a96.zip | |
persist rate
Diffstat (limited to 'src/routes/(app)/[username]/invoice')
| -rw-r--r-- | src/routes/(app)/[username]/invoice/[hash]/+layout.server.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js b/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js index ce7bdcbf..875c4e11 100644 --- a/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js +++ b/src/routes/(app)/[username]/invoice/[hash]/+layout.server.js @@ -15,8 +15,6 @@ export async function load({ depends, params, url, parent }) { let { amount, pending, received } = invoice; amount = parseInt(amount); - console.log('PENDING', pending); - let paid = (!amount && received) || (amount > 0 && (pending >= amount || received >= amount)); if (paid && !url.pathname.endsWith('paid')) throw redirect(307, `/${params.username}/invoice/${hash}/paid`); |
